# coding:utf-8
from django_base.cfg import *

DEBUG = True

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'dct',
        'HOST': '127.0.0.1',
        'USER': 'root',
        'PASSWORD': 'root',
        'PORT': 3306
    }
}

CACHES = {
    'default': {
        'BACKEND': 'django_redis.cache.RedisCache',
        'LOCATION': 'redis://127.0.0.1:6379/10',
        'OPTIONS': {
            'CLIENT_CLASS': 'django_redis.client.DefaultClient',
            'CONNECTION_POOL_KWARGS': {
                'max_connections': 500
            },
            'SOCKET_TIMEOUT': 1,
            'SOCKET_CONNECT_TIMEOUT': 1,
        }
    }
}

LOGGING["loggers"]["web"]["handlers"] = ["console"]
LOGGING["loggers"]["django.server"]["handlers"] = ["console"]
